<template>
  <div class="detail-evaluation" v-if="Object.keys(commentInfo).length">
    <div class="title">
      <p>用户评价</p>
      <p>更多<i data-v-1c1e1109="" class="arrow-right"></i></p>
    </div>
    <div class="info">
      <div class="user">
        <img :src="commentInfo.user.avatar" alt="">
        {{ commentInfo.user.uname }}
      </div>
      <div class="content">
        <p>{{ commentInfo.content }}</p>
        <p>
          <span>{{ commentInfo.created | dateformat }}</span>
          <span>{{ commentInfo.style }}</span>
        </p>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "DetailEvaluation",
  props: {
    commentInfo: {
      type: Object,
      default() {
        return {};
      }
    },
  }
}
</script>

<style scoped>
.detail-evaluation {
  padding: 20px 10px;
  border-bottom: 5px solid #f2f5f8;
}

.detail-evaluation .title {
  display: flex;
  justify-content: space-between;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(0, 0, 0, .1);
}

.arrow-right {
  border-top: 1px solid #999;
  border-left: 1px solid #999;
  width: 9px;
  height: 9px;
  background-color: transparent;
  transform: rotate(135deg);
  display: inline-block;
  margin-left: .1rem;
}

.detail-evaluation .info .user {
  margin-top: 20px;
}

.detail-evaluation .info .user img {
  width: 42px;
  height: 42px;
  vertical-align: middle;
  border-radius: 50%;
  margin-right: 10px;
}

.detail-evaluation .info .content p:first-child {
  font-size: var(--font-size);
  color: #777;
  margin: 15px 0;
}

.detail-evaluation .info .content p:last-child {
  color: #999;
  font-size: 12px;
}

.detail-evaluation .info .content p:last-child span:last-child {
  display: inline-block;
  margin-left: 15px;
}

</style>